package com.yida.gwj.common.enums;

/**
 * 对账类型
 *
 * @author lqq
 */
public enum GwjCheckAccountType {

	//手工对账
	HANDWORK("0", "手工对账");

	private final String code;
	private final String info;

	GwjCheckAccountType(String code, String info) {
		this.code = code;
		this.info = info;
	}

	public static String getInfoByCode(String code){
		for (GwjCheckAccountType value : GwjCheckAccountType.values()) {
			if(value.getCode().equals(code)){
				return value.getInfo();
			}
		}
		return null;
	}

	public String getCode() {
		return code;
	}

	public String getInfo() {
		return info;
	}
}
